﻿using System.ComponentModel.DataAnnotations;
using Best.SmartCms.Dto.Enums;

namespace Best.SmartCms.Dto.Login
{
    /// <summary>
    /// 用户登陆
    /// </summary>
    public class LoginRequestDto
    {
        /// <summary>
        /// 手机号码
        /// </summary>
        [Required(ErrorMessage = "手机号码")]
        public string Phone { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage = "密码不能为空")]
        public string Password { get; set; }
        /// <summary>
        /// 来源
        /// </summary>
        [Required(ErrorMessage = "请求源不能为空")]
        public RequestSourceEnum Source { get; set; }
    }
}
